import { IsString,Length} from 'class-validator';
import { ApiProperty} from '@nestjs/swagger';

/**mongodb通用id实体 */
export class MongodbId {
	@ApiProperty({
		description:"记录id"
	})
	@IsString()
	@Length(24,24)
	id: string;
}

